package inheritedPanel;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JInternalFrame;

public class SupplierInfo extends DefaultPanel{
	private static final long serialVersionUID = 1L;
	SuppMenu supMen = new SuppMenu();
	
	public SupplierInfo() {
		internalFrame = new JInternalFrame("Supplier Information");
		super.setPanel();
		panelCLeft.add(supMen, BorderLayout.WEST);
		internalFrame.setPreferredSize(new Dimension(300, 300));
		internalFrame.setIconifiable(true);
		internalFrame.setMaximizable(true);
		internalFrame.setResizable(true);
//		internalFrame.setLocation((desktopPane.getSize().width - internalFrame.getWidth())/2, (desktopPane.getSize().height - internalFrame.getHeight())/2);
//		desktopPane.add(internalFrame);
		if(!internalFrame.isVisible()){
			internalFrame.setVisible(true);
		}
	}
	
//	JInternalFrame internalFrame;
}
